{{define "header"}}
    <header class="header">
        <div class="header-container">
            <nav>
                <ul class="nav nav-pills">
                    <li role="presentation"><a href="/index">首页</a></li>
                    {{if .isLogin}}
                        <li role="presentation"><a href="/article/write">发布</a></li>
                        <li role="presentation"><a href="/exit">退出</a></li>
                    {{else}}
                        <li role="presentation"><a href="/login">登录</a></li>
                    {{end}}
                    {{/*                    <li role="presentation"><a href="#">关于</a></li>*/}}
                </ul>
            </nav>
        </div>
    </header>
{{end}}